package com.hgkj.cloud.base.dao;

import com.hgkj.cloud.base.domain.TenantTableTasks;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface TenantTableTasksMapper {
    int deleteByPrimaryKey(String uuid);

    int insert(TenantTableTasks record);

    int insertSelective(TenantTableTasks record);

    TenantTableTasks selectByPrimaryKey(String uuid);

    int updateByPrimaryKeySelective(TenantTableTasks record);

    int updateByPrimaryKey(TenantTableTasks record);

    List<TenantTableTasks> listAllTableTasks(Map<String, Object> map);

    List<TenantTableTasks> listUnPublishTableTasks();

    int findAllTableTaskCount(Map<String, Object> map);

    TenantTableTasks findTableTaskByUuid(@Param("uuid") String uuid);

    List<TenantTableTasks> getTaskByTable(Map map);

    List<TenantTableTasks> getUserTask(Map map);

    List<Map<String, Object>> getAllTaskByMap(Map map);

    long findTasksCount(String admin_uuid);

    long findDefaultTasksCount(String framework_id);

    long findTasksCountByUserUuid(String user_uuid);

    TenantTableTasks getDefaultTaskByFrameworkId(Long frameworkId);

    List<Map<String, Object>> getUserDigitalTableMsg(Map map);
}